import type { ProSchemaValueEnumType } from '@ant-design/pro-components';

export const typeMapping: (ProSchemaValueEnumType & {
  key: number;
  option: boolean;
  type: number;
})[] = [
  {
    key: -1,
    text: '全部',
    color: 'blue',
    status: 'normal',
    type: -1,
    option: false,
  },
  {
    key: 0,
    text: '扫码停车场',
    color: 'blue',
    status: 'disabled',
    type: 1,
    option: true,
  },
  {
    key: 1,
    text: '预约停车场',
    color: 'green',
    status: 'success',
    type: 2,
    option: true,
  },
  {
    key: 2,
    text: '普通停车不可预约',
    color: 'default',
    status: 'exception',
    type: 3,
    option: true,
  },
  {
    key: 10,
    text: '普通停车可预约',
    color: 'yellow',
    status: 'exception',
    type: 4,
    option: true,
  },
];
